package com.oa.service;

import com.oa.vo.Page;
import com.oa.pojo.Employee;

import java.util.List;

public interface EmployeeService {

    /**
     * 添加员工
     * @param employee
     */
    void addEmployeeMapper(Employee employee);

    /**
     * 删除员工
     * @param emloyeeId
     */
    void delEmployee(Integer emloyeeId);

    /**
     * 更改员工
     * @param employee
     */
    void updateEmployee(Employee employee);

    /**
     * 查询员工
     * @return
     */
    List<Employee> getEmployeeList();

    /**
     * 分页
     * @param pageNo
     * @param pageSize
     * @return
     */
    Page getEmployeePage(Integer pageNo,Integer pageSize);

    Employee getEmployee(Integer employeeId);
}
